<template>
  <div class="hello">
     <div class="banner">
          <div class="swiper-container">
            <div class="swiper-wrapper">
               <div class="swiper-slide">
                  <img src="../assets/img/banber1.png">
                  <router-link to='zhibo'>
                  	<p>跳过</p>
                  </router-link>
                  
                  
               </div>
               <div class="swiper-slide">
                  <img src="../assets/img/banber2.png">
                  <router-link to='zhibo'>
                  	<p>跳过</p>
                  </router-link>
               </div>
               <div class="swiper-slide">
                  <img src="../assets/img/banber3.png">
                  <router-link to='zhibo'>
                  	<p>跳过</p>
                  </router-link>
                  <router-link to='zhibo'>
                  		<span class="span">立即体验</span>
                  </router-link>
               </div>
            </div>
            <div class="swiper-pagination"></div>
          </div>
      </div>

    
  </div>
</template>

<script>
import Swiper from "swiper"

export default {
  name: 'hello',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  mounted () {
   window.Swiper('.swiper-container',{
        autoplay:2000,
        pagination: '.swiper-pagination',
      })
 }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang = 'less'>
@import '.././assets/less/style.less';
@import '.././assets/css/swiper.min.css';


.banner{
  .swiper-wrapper{
    .swiper-slide{
      position: relative;

      img{
        width: 100%;
      }
      p{
        .px2rem(height, 55);
        .px2rem(width, 135);
        .font(26,#fff);
        text-align: center;
        .line-height(55);
        background: #404040;
        .border(1,soild, #404040);
        position: absolute;
        top: 0;
        right: 0;
        .margin-top(20);
        .margin-right(20);
        .border-radius(30);
      }
      .span{
        position: absolute;
        bottom: 0;
        left: 0;
        .px2rem(height, 88);
        .px2rem(width, 332);
        .font(26,#fff);
        .border(1,solid, #fff);
        text-align: center;
        .line-height(88);
        .border-radius(10);
        .margin-bottom(30);
        .margin-left(220);
      }
    }
  }
}


</style>
